package demo1;

public class TestDemo {
    protected int a = 10;
    public void func(){
        System.out.println(a);
    }
}

class A{}
class B extends A{}
final class C extends B{}
//密封类，这个类将不能被继承，防止无限继承